home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
Xteq X-Setup
/
xqdcXSP-Setup-EN.exe
/
{app}
/
plugins
/
XQ Computer Role.xpl
< prev
next >
Wrap
Text File
|
2004-02-08
|
1KB
|
50 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="2"
"COUNT"="1"
"UIPATH"="Hardware\System Settings"
"NAME"="Power Options"
"OSVERSION"="10111"
"VERSION"="1.11"
"LANGUAGE"="VBScript"
"TEXT 1"="Role"
"DESCRIPTION 1"="Specify the typical work role of your Computer:"
"DESCRIPTION 2"="Enter 0 for Home/Office Desk."
"DESCRIPTION 3"="Enter 1 for Portable/Laptop."
"DESCRIPTION 4"="Enter 2 for Presentation. (Win2000 Only) "
"DESCRIPTION 5"="Enter 3 for Always On."
"DESCRIPTION 6"="Enter 4 for Minimal Power Management. (Win2000 Only)"
"DESCRIPTION 7"="Enter 5 for Maximum Battery Life. (Win2000 Only)"
"AUTHOR"="Ojatex@aol.com"
"CONTACTURL"="http://members.aol.com/ojatex/"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="Portables are still #1 ;)"
"COMMENT 2"="Thanks to john godfrey!"
sP="HKCU\Control Panel\PowerCfg\CurrentPowerPolicy"
'Called when the Plugin is started
Sub Plugin_Initialize
i=RegReadValue(sP)
Call SetUIElement(1,i)
End Sub
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
i=GetUIElement(1)
Call RegWriteValue(sP,i,1)
END SUB
SUB Plugin_Terminate
END SUB